export const SET_TOKEN = (token: string) => {
  localStorage.setItem('token', token)
}

export const GET_TOKEN = () => {
  return localStorage.getItem('token')
}

export const GET_USERNAME = () => {
  return localStorage.getItem('userName')
}

export const SET_USERNAME = (username: string) => {
  localStorage.setItem('userName', username)
}

export const GET_AVATAR = () => {
  return localStorage.getItem('avatar')
}

export const SET_AVATAR = (avatar: string) => {
  localStorage.setItem('avatar', avatar)
}
export const REMOVE_TOKEN = () => {
  localStorage.removeItem('token')
}
export const REMOVE_AVATAR = () => {
  localStorage.removeItem('avatar')
}
export const REMOVE_USERNAME = () => {
  localStorage.removeItem('userName')
}
